import {BaseEntity,Column,Entity,Index,JoinColumn,JoinTable,ManyToMany,ManyToOne,OneToMany,OneToOne,PrimaryColumn,PrimaryGeneratedColumn,RelationId} from "typeorm";


@Entity("fa_cms_diyform",{schema:"fastadmin" } )
export class fa_cms_diyform {

    @PrimaryGeneratedColumn({
        type:"smallint", 
        name:"id"
        })
    id:number;
        

    @Column("char",{ 
        nullable:false,
        length:30,
        name:"name"
        })
    name:string;
        

    @Column("varchar",{ 
        nullable:true,
        length:100,
        name:"title"
        })
    title:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:100,
        name:"keywords"
        })
    keywords:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        name:"description"
        })
    description:string | null;
        

    @Column("varchar",{ 
        nullable:false,
        length:50,
        name:"table"
        })
    table:string;
        

    @Column("text",{ 
        nullable:true,
        name:"fields"
        })
    fields:string | null;
        

    @Column("tinyint",{ 
        nullable:false,
        width:1,
        default: () => "'0'",
        name:"needlogin"
        })
    needlogin:boolean;
        

    @Column("varchar",{ 
        nullable:true,
        name:"successtips"
        })
    successtips:string | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:100,
        name:"redirecturl"
        })
    redirecturl:string | null;
        

    @Column("varchar",{ 
        nullable:false,
        length:30,
        name:"formtpl"
        })
    formtpl:string;
        

    @Column("varchar",{ 
        nullable:true,
        length:30,
        name:"diyname"
        })
    diyname:string | null;
        

    @Column("int",{ 
        nullable:true,
        name:"createtime"
        })
    createtime:number | null;
        

    @Column("int",{ 
        nullable:true,
        name:"updatetime"
        })
    updatetime:number | null;
        

    @Column("varchar",{ 
        nullable:true,
        length:1500,
        name:"setting"
        })
    setting:string | null;
        

    @Column("enum",{ 
        nullable:true,
        default: () => "'hidden'",
        enum:["normal","hidden"],
        name:"status"
        })
    status:string | null;
        
}
